const express = require('express');

const app = express();

app.get('/jsonp',(request, response)=>{
    // 每一个script 标签返回的都是js代码
    let cb = request.query.cb;
    let data = '用户名已存在';
    // response.send(`alert(${data})`);

    response.send(`${cb}('${data}')`);
})

app.listen(80,()=>{
    console.log('server run at 80');
})